package com.teach.javafxclient.controller.base;

import javafx.fxml.FXML;
import javafx.scene.control.Label;
import kong.unirest.json.JSONObject;

/**
 * @author Liang Jianlin
 * @date 2024-06-01 14:48
 */
public class ProjectPageController {
    @FXML
    public Label type;
    @FXML
    public Label teamName;
    @FXML
    public Label teacherName;
    @FXML
    public Label description;
    public Label name;

    public void set(String projectId){
        JSONObject JO = new JSONObject();
        String teacherNameS = new String();
        //网络请求，返回项目信息
        //网络请求获取指导老师名字
        type.setText(JO.getString("type"));
        name.setText(JO.getString("name"));
        teamName.setText(JO.getString("teamName"));
        teacherName.setText(teacherNameS);
        description.setText(JO.getString("description"));
    }
}
